package com.ctbri.arrays;

import java.util.Arrays;
import java.util.Collections;
import java.util.Random;

public class Ex23 {

	public static void main(String[] args) {
		Random random = new Random();
		Integer[] integers = new Integer[10];
		for(int i = 0; i < integers.length; i++) {
			integers[i] = random.nextInt(1000);
		}
		
		Arrays.sort(integers, Collections.reverseOrder());
		System.out.println(Arrays.toString(integers));
	}

}
